package com.example.baselib.databean

import androidx.room.Entity
import androidx.room.PrimaryKey
import java.io.Serializable

/**
 * Author: sxygsj
 * Date: 2020/4/14 15:04
 * Description: 用户信息
 * History:
 * <author> <time> <version> <desc>
 * 作者姓名 修改时间 版本号 描述
 */
data class UserData(
    val code: String,
    val comename: String,
    val post: String,
    val roleid: String,
    var tel: String,
    val token: String,
    val unitinfo: List<Unitinfo>,
    val userid: Int,
    val useridname: String,
    val username: String,
    val usertype: Int
)

@Entity(tableName = "Unit_table")
data class Unitinfo(
    @PrimaryKey(autoGenerate = true)
    var dataID: Int,
    var areacode: String,
    var capacity: String,
    var citycode: String,
    var id: Int,
    var nickname: String,
    var regioncode: String,
    var unitcode: String,
    var unitname: String
)